<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>gTime Help</title>
	<link type="text/css" rel="stylesheet" href="/stylesheets/gtime.css" />
	<link rel="shortcut icon" href="static/favicon.ico" />

</head>
  <body>
	{% include "header.html" %}
	<div id="body">	
		<div id="center_content">
			<h2>Dates</h2>
			<p>When entering dates, you can use <span class="code">t</span> to enter today's date and <span class="code">t-30</span>, for example,
				to enter the date 30 days ago. <br/> 
				<b>NOTE:</b>Enter dates in the format <span class="code"><b>MM-DD-YYYY</b></span> or <span class="code">MM-DD</span> until 
				the date parsing bug is fixed.  You can file bugs
				or follow their resolution on the <a href="https://code.google.com/p/gtime-billing/issues/list">project page for gtime-billing</a>.</p>
			<h2>Statements</h2>
			<p>To avoid having any client-identifying information on the open Internet, you have to type/paste client information
				on each statement you generate.  You'll see an editable text area on the statement that says "Type here..."</p>
			<h2>Parameters</h2>
			<p>You can link to specific queries by including these parameters in your bookmarked URLs.  For example, 
				to use a default hourly rate of $110/hour in calculating fees for the past 90 days for any calendar entries
				that match client "acme", you'd specify <code>http://gtime-billing.appspot.com/?r=110&s=t-90&e=t&q=acme</code></p>
				<table class="reftable">
					<thead>
						<th>Parameter</th>
						<th>Name</th>
						<th>Example</th>
						<th>Description</th>
					</thead>
					<tr>
						<td class="code">r=</td>
						<td>rate</td>
						<td><code>r=110</code></td>
						<td>the default hourly billing rate to use whenever the calendar entry itself does not include one.
							The default rate is overridden by any rate specified in the individual calendar entry.
							To add a $90 per hour rate to specific calendar entry, for example, add the text
							<code>rate: 90</code>to the <b>Description</b> field.</td>
					</tr>
					<tr>
						<td class="code">s=</td>
						<td>start date</td>
						<td><code>s=t-30</code> (last 30 days), <code>s=1-15</code> (jan 15th), <code>s=2008-01-15</code></td>
						<td>you can use <code>t</code> for today and subtract or add days.  For example, to cover the 
							past 30 days, you would enter <code>s=t-30</code>.
							Though all dates are formatted as <code>YYYY-MM-DD</code>, you can enter them as <code>M/D</code> 
							to use the current year.</td>
					</tr>
					<tr>
						<td class="code">e=</td>
						<td>end date</td>
						<td><code>e=t</code> (today), <code>e=2-15</code> (feb 15th), <code>e=2008-02-15</code></td>
						<td></td>
					</tr>
					<tr>
						<td class="code">q=</td>
						<td>query</td>
						<td><code>q=*</code> (match anything), <code>q=acme</code> (match only those containing "acme")</td>
						<td>you can also leave this blank to match anything.
					</tr>
					<tr>
						<td class="code">c=</td>
						<td>calendar id</td>
						<td><code>c=developer-calendar@google.com</code></td>
						<td>if you want to specify a calendar that is not in your normal calendar list, then use
							this parameter.  For example, <a href="/?c=qtfeqhu17esvf168jm9i8955l4@group.calendar.google.com&s=t-60&e=t&r=100&q=101">
							this link bills client 101 for the last 60 days at a default rate of $100 per hour</a>
							Do not use this parameter with private calendars, 
							since you don't want to expose the private id to to web logs.</td>
					</tr>
				</table>
			<br/>
			<div id="buttons"><b><a href="/">« Back to gTime</a></b>
			</div>
		</div>
	<div>
	{% include "footer.html" %}
  </body>
</html>
